package com.bytedance.ttnet.hostmonitor;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;

public class a extends BroadcastReceiver {
    public a() {

    }

    public void onReceive(Context arg5, Intent arg6) {
        try {
            Logger.a("HostMonitor", "onReceive");
            ConnectionType v1 = HostMonitor.c(arg5);
            String v2 = "HostMonitor";
            String v0_1 = v1 == ConnectionType.NONE ? "connection unavailable" : "connection available via " + v1;
            Logger.a(v2, v0_1);
            HostMonitor.a(arg5, v1);
        }
        catch(Throwable v0) {
            v0.printStackTrace();
        }
    }
}

